package com.mm;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;

@SpringBootApplication(
        //SpringBoot启动会自动注入数据源和配置jpa,这里排除掉
        exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class}
)
@EnableDiscoveryClient  //将服务注册到注册管理中心
@EnableFeignClients //开启Feign的支持功能
public class FeignApplication {
    public static void main(String[] args) {
        SpringApplication.run(FeignApplication.class, args);
    }
}
